package com.study.sxc.Entity;

import java.math.BigDecimal;

/**
 * 机房使用统计实体类
 * 对应存储过程 sp_lab_usage_summary() 的返回结果
 */
public class LabSummary {
    
    private Integer labId;           // 机房ID
    private String labName;          // 机房名称
    private Integer totalDuration;   // 总上机时长（分钟）
    private BigDecimal totalCost;    // 总费用
    
    // 默认构造函数
    public LabSummary() {}
    
    // 带参构造函数
    public LabSummary(Integer labId, String labName, Integer totalDuration, BigDecimal totalCost) {
        this.labId = labId;
        this.labName = labName;
        this.totalDuration = totalDuration;
        this.totalCost = totalCost;
    }
    
    // Getter和Setter方法
    public Integer getLabId() {
        return labId;
    }
    
    public void setLabId(Integer labId) {
        this.labId = labId;
    }
    
    public String getLabName() {
        return labName;
    }
    
    public void setLabName(String labName) {
        this.labName = labName;
    }
    
    public Integer getTotalDuration() {
        return totalDuration;
    }
    
    public void setTotalDuration(Integer totalDuration) {
        this.totalDuration = totalDuration;
    }
    
    public BigDecimal getTotalCost() {
        return totalCost;
    }
    
    public void setTotalCost(BigDecimal totalCost) {
        this.totalCost = totalCost;
    }
    
    @Override
    public String toString() {
        return "LabSummary{" +
                "labId=" + labId +
                ", labName='" + labName + '\'' +
                ", totalDuration=" + totalDuration +
                ", totalCost=" + totalCost +
                '}';
    }
} 